home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMChromeWindow.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  215 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMChromeWindow.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMChromeWindow_h__
  6. #define __gen_nsIDOMChromeWindow_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIBrowserDOMWindow; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMChromeWindow */
  21. #define NS_IDOMCHROMEWINDOW_IID_STR "445fa0fc-2151-4cb4-83d3-34c3e39453de"
  22.  
  23. #define NS_IDOMCHROMEWINDOW_IID \
  24.   {0x445fa0fc, 0x2151, 0x4cb4, \
  25.     { 0x83, 0xd3, 0x34, 0xc3, 0xe3, 0x94, 0x53, 0xde }}
  26.  
  27. class NS_NO_VTABLE nsIDOMChromeWindow : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCHROMEWINDOW_IID)
  31.  
  32.   enum { STATE_MAXIMIZED = 1U };
  33.  
  34.   enum { STATE_MINIMIZED = 2U };
  35.  
  36.   enum { STATE_NORMAL = 3U };
  37.  
  38.   /* attribute DOMString title; */
  39.   NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  40.   NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  41.  
  42.   /* readonly attribute unsigned short windowState; */
  43.   NS_IMETHOD GetWindowState(PRUint16 *aWindowState) = 0;
  44.  
  45.   /**
  46.    * browserDOMWindow provides access to yet another layer of
  47.    * utility functions implemented by chrome script. It will be null
  48.    * for DOMWindows not corresponding to browsers.
  49.    */
  50.   /* attribute nsIBrowserDOMWindow browserDOMWindow; */
  51.   NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) = 0;
  52.   NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow * aBrowserDOMWindow) = 0;
  53.  
  54.   /* void getAttention (); */
  55.   NS_IMETHOD GetAttention(void) = 0;
  56.  
  57.   /* void getAttentionWithCycleCount (in long aCycleCount); */
  58.   NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) = 0;
  59.  
  60.   /* void setCursor (in DOMString cursor); */
  61.   NS_IMETHOD SetCursor(const nsAString & cursor) = 0;
  62.  
  63.   /* void maximize (); */
  64.   NS_IMETHOD Maximize(void) = 0;
  65.  
  66.   /* void minimize (); */
  67.   NS_IMETHOD Minimize(void) = 0;
  68.  
  69.   /* void restore (); */
  70.   NS_IMETHOD Restore(void) = 0;
  71.  
  72. };
  73.  
  74. /* Use this macro when declaring classes that implement this interface. */
  75. #define NS_DECL_NSIDOMCHROMEWINDOW \
  76.   NS_IMETHOD GetTitle(nsAString & aTitle); \
  77.   NS_IMETHOD SetTitle(const nsAString & aTitle); \
  78.   NS_IMETHOD GetWindowState(PRUint16 *aWindowState); \
  79.   NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow); \
  80.   NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow * aBrowserDOMWindow); \
  81.   NS_IMETHOD GetAttention(void); \
  82.   NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount); \
  83.   NS_IMETHOD SetCursor(const nsAString & cursor); \
  84.   NS_IMETHOD Maximize(void); \
  85.   NS_IMETHOD Minimize(void); \
  86.   NS_IMETHOD Restore(void); 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  89. #define NS_FORWARD_NSIDOMCHROMEWINDOW(_to) \
  90.   NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  91.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  92.   NS_IMETHOD GetWindowState(PRUint16 *aWindowState) { return _to GetWindowState(aWindowState); } \
  93.   NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) { return _to GetBrowserDOMWindow(aBrowserDOMWindow); } \
  94.   NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow * aBrowserDOMWindow) { return _to SetBrowserDOMWindow(aBrowserDOMWindow); } \
  95.   NS_IMETHOD GetAttention(void) { return _to GetAttention(); } \
  96.   NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) { return _to GetAttentionWithCycleCount(aCycleCount); } \
  97.   NS_IMETHOD SetCursor(const nsAString & cursor) { return _to SetCursor(cursor); } \
  98.   NS_IMETHOD Maximize(void) { return _to Maximize(); } \
  99.   NS_IMETHOD Minimize(void) { return _to Minimize(); } \
  100.   NS_IMETHOD Restore(void) { return _to Restore(); } 
  101.  
  102. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  103. #define NS_FORWARD_SAFE_NSIDOMCHROMEWINDOW(_to) \
  104.   NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  105.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  106.   NS_IMETHOD GetWindowState(PRUint16 *aWindowState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowState(aWindowState); } \
  107.   NS_IMETHOD GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowserDOMWindow(aBrowserDOMWindow); } \
  108.   NS_IMETHOD SetBrowserDOMWindow(nsIBrowserDOMWindow * aBrowserDOMWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBrowserDOMWindow(aBrowserDOMWindow); } \
  109.   NS_IMETHOD GetAttention(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttention(); } \
  110.   NS_IMETHOD GetAttentionWithCycleCount(PRInt32 aCycleCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttentionWithCycleCount(aCycleCount); } \
  111.   NS_IMETHOD SetCursor(const nsAString & cursor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCursor(cursor); } \
  112.   NS_IMETHOD Maximize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Maximize(); } \
  113.   NS_IMETHOD Minimize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Minimize(); } \
  114.   NS_IMETHOD Restore(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Restore(); } 
  115.  
  116. #if 0
  117. /* Use the code below as a template for the implementation class for this interface. */
  118.  
  119. /* Header file */
  120. class nsDOMChromeWindow : public nsIDOMChromeWindow
  121. {
  122. public:
  123.   NS_DECL_ISUPPORTS
  124.   NS_DECL_NSIDOMCHROMEWINDOW
  125.  
  126.   nsDOMChromeWindow();
  127.  
  128. private:
  129.   ~nsDOMChromeWindow();
  130.  
  131. protected:
  132.   /* additional members */
  133. };
  134.  
  135. /* Implementation file */
  136. NS_IMPL_ISUPPORTS1(nsDOMChromeWindow, nsIDOMChromeWindow)
  137.  
  138. nsDOMChromeWindow::nsDOMChromeWindow()
  139. {
  140.   /* member initializers and constructor code */
  141. }
  142.  
  143. nsDOMChromeWindow::~nsDOMChromeWindow()
  144. {
  145.   /* destructor code */
  146. }
  147.  
  148. /* attribute DOMString title; */
  149. NS_IMETHODIMP nsDOMChromeWindow::GetTitle(nsAString & aTitle)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153. NS_IMETHODIMP nsDOMChromeWindow::SetTitle(const nsAString & aTitle)
  154. {
  155.     return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157.  
  158. /* readonly attribute unsigned short windowState; */
  159. NS_IMETHODIMP nsDOMChromeWindow::GetWindowState(PRUint16 *aWindowState)
  160. {
  161.     return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163.  
  164. /* attribute nsIBrowserDOMWindow browserDOMWindow; */
  165. NS_IMETHODIMP nsDOMChromeWindow::GetBrowserDOMWindow(nsIBrowserDOMWindow * *aBrowserDOMWindow)
  166. {
  167.     return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. NS_IMETHODIMP nsDOMChromeWindow::SetBrowserDOMWindow(nsIBrowserDOMWindow * aBrowserDOMWindow)
  170. {
  171.     return NS_ERROR_NOT_IMPLEMENTED;
  172. }
  173.  
  174. /* void getAttention (); */
  175. NS_IMETHODIMP nsDOMChromeWindow::GetAttention()
  176. {
  177.     return NS_ERROR_NOT_IMPLEMENTED;
  178. }
  179.  
  180. /* void getAttentionWithCycleCount (in long aCycleCount); */
  181. NS_IMETHODIMP nsDOMChromeWindow::GetAttentionWithCycleCount(PRInt32 aCycleCount)
  182. {
  183.     return NS_ERROR_NOT_IMPLEMENTED;
  184. }
  185.  
  186. /* void setCursor (in DOMString cursor); */
  187. NS_IMETHODIMP nsDOMChromeWindow::SetCursor(const nsAString & cursor)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* void maximize (); */
  193. NS_IMETHODIMP nsDOMChromeWindow::Maximize()
  194. {
  195.     return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197.  
  198. /* void minimize (); */
  199. NS_IMETHODIMP nsDOMChromeWindow::Minimize()
  200. {
  201.     return NS_ERROR_NOT_IMPLEMENTED;
  202. }
  203.  
  204. /* void restore (); */
  205. NS_IMETHODIMP nsDOMChromeWindow::Restore()
  206. {
  207.     return NS_ERROR_NOT_IMPLEMENTED;
  208. }
  209.  
  210. /* End of implementation class template. */
  211. #endif
  212.  
  213.  
  214. #endif /* __gen_nsIDOMChromeWindow_h__ */
  215.